package com.wangxinenpu.springbootdemo.service;

import com.baomidou.mybatisplus.extension.api.R;
import com.wangxinenpu.springbootdemo.dataobject.dto.function.FunctionSaveVo;
import com.wangxinenpu.springbootdemo.dataobject.dto.function.FunctionTreeVo;
import com.wangxinenpu.springbootdemo.dataobject.model.Function;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 功能点表 服务类
 * </p>
 *
 * @author =
 * @since 2024-06-14
 */
public interface FunctionService extends IService<Function> {

	R < List < FunctionTreeVo > > treeList();

	R< Boolean> delete ( String id );

	R< Boolean> insert ( FunctionSaveVo dto );

	R< Boolean> update ( FunctionSaveVo dto );

	R< Function> detail( String id );

	List < FunctionTreeVo > getChildLevel( FunctionTreeVo  functionFather , List < Function > functionList );

}
